home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / g_man / cat3 / OpenGL / gldepthfunc.z / gldepthfunc
Encoding:
Text File  |  2002-10-03  |  5.6 KB  |  133 lines

  1.  
  2.  
  3.  
  4. ggggllllDDDDeeeepppptttthhhhFFFFuuuunnnncccc((((3333GGGG))))                OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee                ggggllllDDDDeeeepppptttthhhhFFFFuuuunnnncccc((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ggggllllDDDDeeeepppptttthhhhFFFFuuuunnnncccc - specify the value used for depth buffer comparisons
  10.  
  11.  
  12. CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  13.      void ggggllllDDDDeeeepppptttthhhhFFFFuuuunnnncccc( GLenum _f_u_n_c )
  14.  
  15.  
  16. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  17.      _f_u_n_c  Specifies the depth comparison function.  Symbolic constants
  18.            GGGGLLLL____NNNNEEEEVVVVEEEERRRR, GGGGLLLL____LLLLEEEESSSSSSSS, GGGGLLLL____EEEEQQQQUUUUAAAALLLL, GGGGLLLL____LLLLEEEEQQQQUUUUAAAALLLL, GGGGLLLL____GGGGRRRREEEEAAAATTTTEEEERRRR, GGGGLLLL____NNNNOOOOTTTTEEEEQQQQUUUUAAAALLLL,
  19.            GGGGLLLL____GGGGEEEEQQQQUUUUAAAALLLL, and GGGGLLLL____AAAALLLLWWWWAAAAYYYYSSSS are accepted.  The initial value is
  20.            GGGGLLLL____LLLLEEEESSSSSSSS.
  21.  
  22. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  23.      ggggllllDDDDeeeepppptttthhhhFFFFuuuunnnncccc specifies the function used to compare each incoming pixel
  24.      depth value with the depth value present in the depth buffer.  The
  25.      comparison is performed only if depth testing is enabled.  (See ggggllllEEEEnnnnaaaabbbblllleeee
  26.      and ggggllllDDDDiiiissssaaaabbbblllleeee of GGGGLLLL____DDDDEEEEPPPPTTTTHHHH____TTTTEEEESSSSTTTT.)
  27.  
  28.      _f_u_n_c specifies the conditions under which the pixel will be drawn.  The
  29.      comparison functions are as follows:
  30.  
  31.      GGGGLLLL____NNNNEEEEVVVVEEEERRRR        Never passes.
  32.  
  33.      GGGGLLLL____LLLLEEEESSSSSSSS         Passes if the incoming depth value is less than the
  34.                      stored depth value.
  35.  
  36.      GGGGLLLL____EEEEQQQQUUUUAAAALLLL        Passes if the incoming depth value is equal to the stored
  37.                      depth value.
  38.  
  39.      GGGGLLLL____LLLLEEEEQQQQUUUUAAAALLLL       Passes if the incoming depth value is less than or equal
  40.                      to the stored depth value.
  41.  
  42.      GGGGLLLL____GGGGRRRREEEEAAAATTTTEEEERRRR      Passes if the incoming depth value is greater than the
  43.                      stored depth value.
  44.  
  45.      GGGGLLLL____NNNNOOOOTTTTEEEEQQQQUUUUAAAALLLL     Passes if the incoming depth value is not equal to the
  46.                      stored depth value.
  47.  
  48.      GGGGLLLL____GGGGEEEEQQQQUUUUAAAALLLL       Passes if the incoming depth value is greater than or
  49.                      equal to the stored depth value.
  50.  
  51.      GGGGLLLL____AAAALLLLWWWWAAAAYYYYSSSS       Always passes.
  52.  
  53.      The initial value of _f_u_n_c is GGGGLLLL____LLLLEEEESSSSSSSS.  Initially, depth testing is
  54.      disabled.  Even if the depth buffer exists and the depth mask is non-
  55.      zero, the depth buffer is not updated if the depth test is disabled.
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ggggllllDDDDeeeepppptttthhhhFFFFuuuunnnncccc((((3333GGGG))))                OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee                ggggllllDDDDeeeepppptttthhhhFFFFuuuunnnncccc((((3333GGGG))))
  71.  
  72.  
  73.  
  74. ERRORS
  75.      GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____EEEENNNNUUUUMMMM is generated if _f_u_n_c is not an accepted value.
  76.  
  77.      GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____OOOOPPPPEEEERRRRAAAATTTTIIIIOOOONNNN is generated if ggggllllDDDDeeeepppptttthhhhFFFFuuuunnnncccc is executed between the
  78.      execution of ggggllllBBBBeeeeggggiiiinnnn and the corresponding execution of ggggllllEEEEnnnndddd.
  79.  
  80. AAAASSSSSSSSOOOOCCCCIIIIAAAATTTTEEEEDDDD GGGGEEEETTTTSSSS
  81.      ggggllllGGGGeeeetttt with argument GGGGLLLL____DDDDEEEEPPPPTTTTHHHH____FFFFUUUUNNNNCCCC
  82.      ggggllllIIIIssssEEEEnnnnaaaabbbblllleeeedddd with argument GGGGLLLL____DDDDEEEEPPPPTTTTHHHH____TTTTEEEESSSSTTTT
  83.  
  84.  
  85. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  86.      ggggllllDDDDeeeepppptttthhhhRRRRaaaannnnggggeeee, ggggllllEEEEnnnnaaaabbbblllleeee, ggggllllPPPPoooollllyyyyggggoooonnnnOOOOffffffffsssseeeetttt
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.